package com.xjoyt.pay.share.interfaces;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.share.params.PhoneCodeParam;
import com.xjoyt.pay.share.params.SmsPageParam;
import com.xjoyt.pay.share.po.Sms;

public interface SmsContract {

	@RequestMapping("getCode")
	ExecuteResult<String> getCode(PhoneCodeParam param) throws Exception;

	@RequestMapping("validateCode")
	ExecuteResult<String> validateCode(PhoneCodeParam param) throws Exception;

	@RequestMapping("removeCode")
	ExecuteResult<?> removeCode(PhoneCodeParam param) throws Exception;

	@RequestMapping(value = "loadPage", method = RequestMethod.POST)
	PageResult<Sms> loadPage(PageParam<SmsPageParam> param);
}
